<!--<?php print <<<EOT
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="$db_metakeyword" />
<meta name="description" content="$db_metadescrip" />
<title>$title {$blogdb[blogtitle]} - {$db_blogname} {$db_blogtitle} - Powered By PHPWind.Net</title>
<link rel="alternate" href="$P/rss.php?uid=$uid" type="application/rss+xml" title="RSS 2.0">
<script language="JavaScript" src="js/global.js"></script>
<script language="JavaScript" src="js/ajax.js"></script>
<!--
EOT;
if($uid == $winduid){print<<<EOT
-->
<script language="JavaScript" src="js/style.js"></script>
<!--
EOT;
}
print<<<EOT
-->
<script language="JavaScript">
var uid = '$uid';
var winduid = '$winduid';
var itemid = '$itemid';
var ajaxurl = '$db_blogurl/ajax.php';
var ajaxtype='user';
var ajaxcmt = false;
var ifsumreply = false;
</script>
<style type="text/css">
$usercss
$diycss
</style>
</head>
<body>
<!--
EOT;
if($blogdb[flashurl]){print <<<EOT
-->
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" style="position:absolute;margin: 0 0 0 1px;" width="1024" height="768"><param name="movie" value="{$blogdb[flashurl]}" /><param name="quality" value="high" /><param name="wmode" value="transparent" /><embed src="{$blogdb[flashurl]}" quality="high" type="application/x-shockwave-flash" style="position:absolute;margin: 0 0 0 1px;" width="1024" height="768" wmode="transparent"></embed></object>
<!--
EOT;
}print <<<EOT
-->
<div id="showmenu" style="z-index:100;display:none;"></div>
<div class="wrap1"><div class="wrap2"><div class="wrap3">
<div dargarea='yes' id="container">
  <!--begin header-->
  <div id="header">
	<div id="title">
	  <div class="fr tar" id="toolbar">
		<a href="$H" class="small yellow tdu">$H</a><br />
		<a href="$B_url">{$db_blogname}首页</a>
		| &nbsp;
<!--
EOT;
if($winduid!=$uid){print <<<EOT
-->
<a href="$H">$blogdb[username]的首页</a>
<!--
EOT;
}else{print <<<EOT
-->
<a href="$H">我的主页</a>
<!--
EOT;
}if($winduid){print <<<EOT
-->
| &nbsp;<a href="$B_url/user_index.php" target="_blank">管理</a> | <a href="$loginouturl">注销</a>
<!--
EOT;
}else{print <<<EOT
-->

| &nbsp;<a href="$loginurl">登陆</a> | <a href="$regurl">注册</a>
<!--
EOT;
}print <<<EOT
-->
	  </div>
	  <h1><a href="$H" class="yellow noul">$blogdb[blogtitle]</a>
<!--
EOT;
if($winduid == $uid){print<<<EOT
-->
	  <span style="font-size:12px;font-weight:normal;"><a onclick=EditStyle('style_edit_box',this.id); id="style_edit" style="cursor:pointer">编辑风格</a></span>
<!--
EOT;
}
print<<<EOT
-->
</h1>
	  <div id="site-dsc">$blogdb[introduce]</div>
	  <div id="showmenu_second" style="z-index:200;display:none;"></div>
	  <div id="colorbox1" class="menu" style="display:none;z-index:1000;"></div>
	  
		<div class="menu" id="style_edit_box" style="display:none">
			<table style="width:300px;margin:5px;border:1px solid #eee;">
			<tr>
			<td colspan="2" class="h1" style="cursor:move" onmousedown="read.move(event);"><span class="fl"><h3>快速编辑风格</h3></span><span class="fr" style="cursor:pointer;" onclick="closep();" title="close"><img src="$imgpath/wysiwyg/close.gif" /></span></td>
			</tr>
			<tr>
				<td style="width:20%">背景色：</td><td><input type="text" name="bgcolor" value="$arr_diycss[bgcolor]" id="bgcolor_text" size="10" onchange="ChangeC()"><a id='showc' onclick="ShowC('colorbox1',this.id)" style="cursor:pointer;position:absolute">显示颜色 </a>
				</td>
			</tr>
			<tr>
				<td style="width:20%">banner图：</td><td><input type="text" name="bannerimg" value="$arr_diycss[bannerimg]" id="bannerimg_text" size="10" onchange="SetBanner()"></td>
			</tr>
			<tr>
				<td style="width:20%">背景图片：</td><td><input type="text" name="bgimg" value="$arr_diycss[bgimg]" id="bgimg_text" size="10" onchange="SetBgImg()"><div class="c"></div>重复：<input type="checkbox" name="bgtype" id="bgtype" value="1" $bgchecked onclick=ChangeBgImgStyle(this.id)></td>
			</tr>
			<tr>
				<td>
					<input type="button" name="button" value="保存" onclick="SaveStyle();">
					<input type="button" name="button" value="还原至默认" onclick="RevertStyle();">
				</td>
			</tr>
			</table>
		</div>
	</div>
	<div class="c"></div>
	<ul id="guide">
<!--
EOT;
foreach ($index_order as $key => $value) {
$activeclass = ($type == $key) ? ' class="active"' : '';print <<<EOT
-->
	  <li{$activeclass}>
<!--
EOT;
if ($key == 'index') {print <<<EOT
-->
		<a href="$H">首页</a>
<!--
EOT;
}else{
$targetblank = preg_match('/http([s]?):\/\//i',$value[url]) ? ' target="_blank"' : '';print <<<EOT
-->
		<a href="$value[url]"{$targetblank}>$value[name]</a>
<!--
EOT;
}print <<<EOT
-->
	  </li>
<!--
EOT;
}print <<<EOT
-->
	</ul>
  </div>
  <div class="c" ></div>
  <!--end header-->
<!--
EOT;
?>
-->